/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enteties.article;

import java.util.Collection;
import java.util.List;
import javax.ejb.Local;
import util.article.ArticleDetails;

/**
 *
 * @author Joris
 */
@Local
public interface ArticleFacadeLocal {

    void create(Article article);

    void edit(Article article);

    void remove(Article article);

    Article find(Object id);

    List<Article> findAll();

    List<Article> findRange(int[] range);

    int count();

    public Integer createArticle(String articleNumber, String description, Integer supplierId, Integer groupId);

    public ArticleDetails createArticle(ArticleDetails ad);

    public ArticleDetails convert(Article a);

    public Collection<ArticleDetails> convert(Collection<Article> articles);
    
}
